qinglan.Canvas.ParBullet = qinglan.Canvas.Bullet.extend(function(id, position, opt) {

	this.distance = opt.distance || 0;

	this.theta = opt.theta || 0;

	this.initPos = opt.initPos || false;

	this.visible = false;

	this.width = this.qlImg.width;

	this.height = this.qlImg.height;

	this.translateCenter = this.qlImg.translateCenter;

	this.isRotate = opt.isRotate || false;

	this.data = {};

	this.data.delay = opt.delay || 0;

	this.data.isDelay = true;
	
	this.data.isStop = false;

}).methods({
	init: function(){ 
		this.supr();
		this.theta = qinglan.Canvas.Const.deg2rad(this.theta);
	},
	reset: function(opt){
		this.supr(opt);
		this.distance = opt.distance || 0;
		this.theta = opt.theta || 0;
		this.init();
	},
	draw: function(ctx) {
		this.supr(ctx);
		//this.qlImg ? qinglan.Canvas.CanvasRender.drawSprite(ctx, this.qlImg) : this.supr(ctx);
	},
	update: function(ctx) {
		this.change(ctx);

		this.supr(ctx);
	},
	change: function(ctx){
		qinglan.Canvas.ParBulletModel.createInstance().update(this);
	},
	isDie: function(){

	},
	destory: function(){
		this.supr();
		this.visible = false;
		return true;
	}
}).statics({
	
});
